package org.jgs2007.onemall.service.impl;

import org.jgs2007.onemall.entity.Admin;
import org.jgs2007.onemall.mapper.AdminMapper;
import org.jgs2007.onemall.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public void save(Admin admin) {
        adminMapper.insert(admin);
    }

    @Override
    public Admin getOne(Admin admin) {
        return adminMapper.getOne(admin);
    }
}
